package com.demo.web_06;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

//创建RequestListener
public class RequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent servletRequestEvent) {
        System.out.println("初始化 Request");
    }

    @Override
    public void requestInitialized(ServletRequestEvent
                                           servletRequestEvent) {
        System.out.println("销毁  Request");
    }
}